package com.example.Contral;

import com.example.Dao.find;
import com.example.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class contral1 {
    @Autowired
    private find find1;

    @ResponseBody
    @RequestMapping("/")
    public String contral(){
        List<User>result=find1.find();
        System.out.println(result+"这是查询结果");
        return "查询完成";
    }
}
